<?php
/**
 * Created by PhpStorm.
 * User: Yangxufeng
 * Date: 2018/8/29
 * Time: 16:45
 */

namespace app\index\validate;

class NoticeValidate extends BaseValidate
{
    protected $rule = [
        'contents' => 'require|max:50',
        'start_time' => 'require|date',
        'end_time' => 'require|date',
        'sort' => 'isPositiveInt',
        'status' => 'zeroOrOne',
        'primary_key' => 'isPositiveInt'
    ];
}